package com.rules.admin.service;


import com.baomidou.mybatisplus.extension.service.IService;

import com.rules.admin.entity.SysGroupUserRole;

import java.util.List;

public interface SysGroupUserRoleService extends IService<SysGroupUserRole> {
   void insert(SysGroupUserRole[] sysGroupUserRoles);

   List<SysGroupUserRole> getByUserId(long userId);

   void deleteByUserId(long userId);

   List<SysGroupUserRole> getByGroupId(long groupId);

   List<SysGroupUserRole> getRole(long id, long groupId);

   void deleteByIds(long[] ids, long groupId);

   void updateRole(SysGroupUserRole[] sysGroupUserRoles);

   void deleteByGroupId(long groupId);
}
